package org.dyz.banana.platform.common.service.impl;

import java.util.List;

import org.dyz.banana.platform.common.mapper.TRoleMapper;
import org.dyz.banana.platform.common.service.ITRoleService;
import org.dyz.banana.platform.common.vo.TRoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author dongyongzhao
 * @since 2021-04-12
 */
@Service
public class TRoleServiceImpl extends ServiceImpl<TRoleMapper, TRoleVo> implements ITRoleService {
	@Autowired
	private TRoleMapper tRoleMapper;
	
	
	public void settRoleMapper(TRoleMapper tRoleMapper) {
		this.tRoleMapper = tRoleMapper;
	}


	public List<TRoleVo> getRoleByUsername(String username){
		return tRoleMapper.getRoleByUsername(username);
	}
}
